<!doctype html>
<html class="no-js fixed-layout">
<head>
<% include("/common/shop_head.html"){}%>
</head>
<body>
<%include("/shop/header.html"){}%>
<div class="am-cf shop-main">
  <!-- sidebar start -->
  <%include("/shop/sidebar.html"){}%>
  <!-- sidebar end -->

  <!-- content start -->
  <div class="shop-content">
    <div class="shop-content-body">
      <ol class="am-breadcrumb am-margin-left am-margin-bottom-0">
        <li><span class="am-icon-money am-icon-fw"> </span>我的预存款</li>
        <li class="am-active">预存款记录</li>
        <li><span class="am-text-danger">[预存款余额：${loginMember.deposit.balance!0,orderUnitCurrencyFormat}]</span></li>
      </ol>
      <div class="am-panel am-panel-default am-text-xs am-margin-horizontal-sm">
        <div class="am-panel-bd am-g am-padding-0 am-scrollable-horizontal">
          <table class="am-table am-table-bordered am-table-striped am-table-hover am-text-nowrap am-text-xs am-margin-bottom-0">
            <thead>
              <tr>
                <th>操作类型</th>
				<th>存入金额</th>
			    <th>支出金额</th>
				<th>当前余额</th>
			    <th>日期</th>
              </tr>
            </thead>
            <tbody>
              <%for(list in pager.list){%>
			  <tr>
			    <td>
				  <%if (list.payment != null && list.payment.order != null){%>
				  <a href="/shop/order/view?id=${list.payment.order.id}">
				    ${i18n("DepositType." + list.depositType)}
				  </a>
				  <%}else{%>
				  ${i18n("DepositType." + list.depositType)}
				  <%}%>
				</td>
				<td>
				  <%if (list.credit != 0){%>
				  ${list.credit,orderUnitCurrencyFormat}
				  <%}else{%>
				  -
				  <%}%>
				</td>
				<td>
				  <%if (list.debit != 0){%>
				  ${list.debit,orderUnitCurrencyFormat}
				  <%}else{%>
				  -
				  <%}%>
				</td>
				<td>
				  ${list.balance,orderUnitCurrencyFormat}
				</td>
				<td>
			      <span title="${list.createDate,dateFormat="yyyy-MM-dd HH:mm:ss"}">${list.createDate,dateFormat="yyyy-MM-dd HH:mm:ss"}</span>
				</td>
			  </tr>
			  <%}%>
            </tbody>
          </table>
          <%if (pager.list.~size == 0){%>
          <div class="am-kai am-text-center am-margin">
            <h3>没有找到任何记录!</h3>
          </div>
          <%}%>
        </div>
      </div>
      <%include("/shop/pager.html", {"pageNumber":pager.pageNumber,"pageSize":pager.pageSize,"pageCount":pager.totalPage,"property":"","keyword":"无","orderBy":"","orderType":"","baseUrl":"/deposit/list"}) {}%>
    </div>
    <%include("/shop/footer.html"){}%>
  </div>
  <!-- content end -->
</div>
</body>
</html>